[r926]: / branches / develop / mqttsparkplug / mqttsparkplug / Sparkplug™ MQTT edge and host / Function Blocks / FB_Metric / FB_Metric / FB_AfterInit / svnobj  Maximize  Restore  History

Download this file

10 lines (9 with data), 1.3 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
{attribute 'call_after_init'}
METHOD FB_AfterInit
VAR
IF THIS^.itfPrimaryHost <> 0 THEN
    IF __QUERYPOINTER( itfPrimaryHost,
                       pPrimary ) THEN
        pPrimary^.RegisterMetric( THIS^ );
    END_IF
END_IF